#include "VShaderDX9.h"
#include "VShaderDX10.h"

CVShader *CVShader::CreateVShader( mString a_sFileName )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new CVShaderDX9(a_sFileName);
    case V_D3D10:
        return new CVShaderDX10(a_sFileName);
    }
    return NULL;
}

#include "PShaderDX9.h"
#include "PShaderDX10.h"

CPShader *CPShader::CreatePShader( mString a_sFileName )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new CPShaderDX9(a_sFileName);
    case V_D3D10:
        return new CPShaderDX10(a_sFileName);
    }
    return NULL;
}

#include "GShaderDX10.h"

CGShader *CGShader::CreateGShader( mString a_sFileName )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return NULL;
    case V_D3D10:
        return new CGShaderDX10(a_sFileName);
    }
    return NULL;
}